/*
 * eframe-support - frame支撑模块
 * Copyright © 2020-2025 Linlan (open@linlan.net)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.linlan.utils.constant;

/**
 * 用户常量信息
 * 
 * @author Linlan
 */
public class UserConstants {
    /**
     * 平台内系统用户的唯一标志
     */
    public static final String  SYS_USER            = "SYS_USER";

    /** 正常状态 */
    public static final String  NORMAL              = "0";

    /** 异常状态 */
    public static final String  EXCEPTION           = "1";

    /** 用户封禁状态 */
    public static final String  USER_DISABLE        = "1";

    /** 角色封禁状态 */
    public static final String  ROLE_DISABLE        = "1";

    /** 部门正常状态 */
    public static final String  DEPT_NORMAL         = "0";

    /** 部门停用状态 */
    public static final String  DEPT_DISABLE        = "1";

    /** 字典正常状态 */
    public static final String  DICT_NORMAL         = "0";

    /** 是否为系统默认（是） */
    public static final String  YES                 = "Y";

    /** 是否菜单外链（是） */
    public static final String  YES_FRAME           = "0";

    /** 是否菜单外链（否） */
    public static final String  NO_FRAME            = "1";

    /** 菜单类型（目录） */
    public static final String  TYPE_DIR            = "CATEGORY";

    /** 菜单类型（菜单） */
    public static final String  TYPE_MENU           = "MENU";

    /** 菜单类型（按钮） */
    public static final String  TYPE_BUTTON         = "BUTTON";

    /** Layout组件标识 */
    public final static String  LAYOUT              = "Layout";

    /** ParentView组件标识 */
    public final static String  PARENT_VIEW         = "ParentView";

    /** InnerLink组件标识 */
    public final static String  INNER_LINK          = "InnerLink";

    /** 校验是否唯一的返回标识 */
    public final static boolean UNIQUE              = true;
    public final static boolean NOT_UNIQUE          = false;

    /**
     * 用户名长度限制
     */
    public static final int     USERNAME_MIN_LENGTH = 2;
    public static final int     USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int     PASSWORD_MIN_LENGTH = 5;
    public static final int     PASSWORD_MAX_LENGTH = 20;
}
